import request from '../utils/request';
//人员管理业务接口文档
const api = {
  //获取某个组织架构下得所有部门
  GetDepartmentTreeData(data?: any) {
    return request({
      url: '/api/Department/GetDepartmentTreeData',
      method: 'post',
      data,
    });
  },
  //新增部门数据
  AddDepartment(data?: any) {
    return request({
      url: '/api/Department/AddDepartment',
      method: 'post',
      data,
    });
  },
  //修改部门数据
  UpdateDepartment(data?: any) {
    return request({
      url: '/api/Department/UpdateDepartment',
      method: 'post',
      data,
    });
  },
  //删除部门数据
  DeleteDepartment(data?: any) {
    return request({
      url: '/api/Department/DeleteDepartment',
      method: 'post',
      data,
    });
  },
};
//业务开单接口
export default api;
